<template>
	<view>
		<view class="full"></view>
		
		<view class="confirm">
			<view class="title ac">操作步骤</view>
			<view class="content">
				<view class="job-item" :class="{on:item === 0}" @click="item = 0"><b>更换设备</b></view>
				<view class="job-item" :class="{on:item === 1}" @click="item = 1"><b>设备上道</b></view>
				<view class="job-item" :class="{on:item === 2}" @click="item = 2"><b>设备下道</b></view>
			</view>
			<view class="btn">
				<button @click="closeFull"><b>取消</b></button><button @click="jumpUrl('/pages/device/changeDevice')"><b>确认</b></button>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				item : ''
			}
		},
		methods:{
			closeFull() {
				this.$emit('closeFull');
			},
			jumpUrl(url) {
				if(this.item !== 1) return;
				this.closeFull();
				uni.navigateTo({
				    url: url
				});
			}
		}
	}
</script>

<style scoped>
	.confirm>.content{
		padding-top: 0;padding-bottom: 0;
	}
	.job-item{
		line-height: 55px;padding-right: 18px;border-bottom: 1px solid #F1F1F1;
	}
	.confirm>.content>.on{
		color: #307BE0;
	}
</style>
